package com.example.mapper;


import com.example.entity.PersonEntity;
import com.example.entity.PersonSearchEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PersonMapper {
    public List<PersonEntity> findAll();
    public List<PersonEntity> personSearch(PersonSearchEntity personSearch);
    int personSearchCount(PersonSearchEntity personSearch);
    boolean update(PersonEntity personEntity);
    boolean insert(PersonEntity personEntity);
    boolean delete(int id);

    boolean savePerson(PersonEntity personEntity);
}
